package com.heima.schedule.service;

import com.heima.model.schedule.dtos.Task;
import com.heima.model.schedule.pojos.Taskinfo;
import org.springframework.util.StopWatch;

public interface TaskService {

    /**
     * 添加延时任务
     * @param task
     * @return
     */
    long addTask(Task task);

    boolean deleteTask(long taskId);

    Taskinfo poll(int type,int priority);
}
